package com.dushibao.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dushibao.admin.model.Menu;
import com.dushibao.admin.vo.request.MenuModelPageRequest;
import com.dushibao.admin.vo.request.MenuModelRequest;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 *  菜单 Mapper 接口
 *
 * @author zqd
 * @date 2021-12-07 08:28:35
 */
@Mapper
public interface MenuMapper extends BaseMapper<Menu> {
    List<Menu> selectChildsByPid(Long id);

    List<Menu> selectTreeMenus(MenuModelPageRequest pageRequest);

    List<Menu> selectJoinMenus(MenuModelPageRequest pageRequest);

    Menu selectById(Long id);

    List<Menu> selectPages(MenuModelPageRequest pageRequest);

    int selectCount(MenuModelPageRequest pageRequest);

    List<Menu> findTreeMenu();

    List<Menu> findAdminMenus(Long adminId);

    List<Menu> findAdminMenuList(Long adminId);

}
